package persistence.dataAccessObjects.interfaces;

import java.util.ArrayList;

import javax.servlet.ServletException;

import exceptions.DatasetNotFoundException;

import persistence.transferPOJOs.Kommentar;
import persistence.transferPOJOs.User;


//Interface that all CustomerDAOs must support
public interface IUserDAO 
{
	public boolean insertUser(User user) throws ServletException;

	public boolean deleteUser(String email) throws DatasetNotFoundException, ServletException;

	public User getUserByEMail(String email) throws ServletException, DatasetNotFoundException;

	public int insertKommentar(Kommentar kommentar) throws ServletException;

	public boolean checkOnNewUserMail(String email) throws ServletException;
	
	public boolean checkCredentials(String email,String password) throws ServletException, DatasetNotFoundException;
	
	public ArrayList<Kommentar> getKommentareByUserEmail(String email) throws ServletException;
	
	public ArrayList<User> getAllUsers();
	
	public boolean changeUserData(User user) throws ServletException, DatasetNotFoundException;
	
	
}


